<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1" cellspacing="0" width="60%">
        <thead>
            <tr><th>姓名</th><th>电话</th><th>职位</th><th>操作</th></tr>
        </thead>
        <tbody>
            <tr th:each="mess:${info.list}">
                <td th:text="${mess.name}"></td>
                <td th:text="${mess.phone}"></td>
                <td th:text="${mess.job}"></td>
                <td>
                    <a th:href="@{/mess/del(id=${mess.id})}">删除</a>
                    <a th:href="@{/mess/findById(id=${mess.id})}">修改</a>
                </td>

            </tr>
        </tbody>
    </table>
    <div>
        <a style="margin-left: 8px" th:each="i:${#numbers.sequence(1,info.pages)}" th:text="${i}"
         th:href="@{/mess/findByItem(pageNO=${i},name=${name},job=${job})}">
        </a>
    </div>
    <form action="/mess/findByItem">
        姓名:<input type="text" name="name" th:value="${name}"><br>
        职位:<input type="text" name="job" th:value="${job}"><br>
        <input type="submit" value="提交">
    </form>
    <a href="/html/add.html">添加</a>
</body>
</html>